<div class="headline">
  <h2>
    <?php if ($this->viewer == $this->user):?>
      <?php echo $this->translate('Edit My Profile');?>
    <?php else:?>
      <?php echo $this->translate('%1$s\'s Profile', $this->htmlLink($this->user->getHref(), $this->user->getTitle()));?>
    <?php endif;?>
  </h2>
  <div class="tabs">
    <?php
      // Render the menu
      echo $this->navigation()
        ->menu()
        ->setContainer($this->navigation)
        ->render();
    ?>
  </div>
</div>
<?php if ($this->web_cam_on):?>
<?php echo $this->htmlLink(array('route' => 'default', 'module' => 'avatar', 'controller' => 'edit', 'action' => 'getwebcam'), $this->translate('Take a WebCam Photo'), array(
      'class' => 'smoothbox buttonlink webcam_button_link' )) ?>
<?php endif;?>&nbsp;
<?php if ($this->avatar_collection_on):?>
<?php echo $this->htmlLink(array('route' => 'default', 'module' => 'avatar', 'controller' => 'edit', 'action' => 'getavatarcollection'), $this->translate('Select Avatar'), array('class' => 'smoothbox buttonlink webcam_button_link2' )) ?>
<?php endif;?>
<div style="margin-bottom:10px"></div>
<?php echo $this->form->render($this) ?>
